#ifndef MYHTTPD_H_
#define MYHTTPD_H_

#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <arpa/inet.h>
#include <fcntl.h>

/*
** This is the struc of the global variable.
**  config_file : name of the configuration file
**  pidsvr : pid of the server when it is a deamon => if exist the
**  server is started.
*/
typedef struct configuration s_configuration;
struct	configuration
{
  char	*config_file;
  int	port;
  char	*root_dir;
  char	*pid_file;
  pid_t pidsvr;
};

#endif /* MYHTTPD_H_ */
